home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 60 / IOPROG_60.ISO / soft / c++ / gsl-1.1.1-setup.exe / {app} / include / gsl / gsl_precision.h < prev    next >
Encoding:
C/C++ Source or Header  |  2002-04-20  |  2.8 KB  |  102 lines

  1. /* gsl_precision.h
  2.  * 
  3.  * Copyright (C) 1996, 1997, 1998, 1999, 2000 Gerard Jungman
  4.  * 
  5.  * This program is free software; you can redistribute it and/or modify
  6.  * it under the terms of the GNU General Public License as published by
  7.  * the Free Software Foundation; either version 2 of the License, or (at
  8.  * your option) any later version.
  9.  * 
  10.  * This program is distributed in the hope that it will be useful, but
  11.  * WITHOUT ANY WARRANTY; without even the implied warranty of
  12.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  13.  * General Public License for more details.
  14.  * 
  15.  * You should have received a copy of the GNU General Public License
  16.  * along with this program; if not, write to the Free Software
  17.  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18.  */
  19.  
  20. /* Author:  B. Gough and G. Jungman */
  21.  
  22. #ifndef __GSL_PRECISION_H__
  23. #define __GSL_PRECISION_H__
  24.  
  25. #undef __BEGIN_DECLS
  26. #undef __END_DECLS
  27. #ifdef __cplusplus
  28. # define __BEGIN_DECLS extern "C" {
  29. # define __END_DECLS }
  30. #else
  31. # define __BEGIN_DECLS /* empty */
  32. # define __END_DECLS /* empty */
  33. #endif
  34.  
  35. __BEGIN_DECLS
  36.  
  37.  
  38. /* A type for the precision indicator.
  39.  * This is mainly for pedagogy.
  40.  */
  41. typedef  unsigned int  gsl_prec_t;
  42.  
  43.  
  44. /* The number of precision types.
  45.  * Remember that precision-mode
  46.  * can index an array.
  47.  */
  48. #define _GSL_PREC_T_NUM 3
  49.  
  50.  
  51. /* Arrays containing derived
  52.  * precision constants for the
  53.  * different precision levels.
  54.  */
  55. #ifdef GSL_EXPORTS
  56. __declspec(dllexport) const double gsl_prec_eps[];
  57. #elif defined(GSL_IMPORTS)
  58. __declspec(dllimport) const double gsl_prec_eps[];
  59. #else
  60. extern const double gsl_prec_eps[];
  61. #endif
  62. #ifdef GSL_EXPORTS
  63. __declspec(dllexport) const double gsl_prec_sqrt_eps[];
  64. #elif defined(GSL_IMPORTS)
  65. __declspec(dllimport) const double gsl_prec_sqrt_eps[];
  66. #else
  67. extern const double gsl_prec_sqrt_eps[];
  68. #endif
  69. #ifdef GSL_EXPORTS
  70. __declspec(dllexport) const double gsl_prec_root3_eps[];
  71. #elif defined(GSL_IMPORTS)
  72. __declspec(dllimport) const double gsl_prec_root3_eps[];
  73. #else
  74. extern const double gsl_prec_root3_eps[];
  75. #endif
  76. #ifdef GSL_EXPORTS
  77. __declspec(dllexport) const double gsl_prec_root4_eps[];
  78. #elif defined(GSL_IMPORTS)
  79. __declspec(dllimport) const double gsl_prec_root4_eps[];
  80. #else
  81. extern const double gsl_prec_root4_eps[];
  82. #endif
  83. #ifdef GSL_EXPORTS
  84. __declspec(dllexport) const double gsl_prec_root5_eps[];
  85. #elif defined(GSL_IMPORTS)
  86. __declspec(dllimport) const double gsl_prec_root5_eps[];
  87. #else
  88. extern const double gsl_prec_root5_eps[];
  89. #endif
  90. #ifdef GSL_EXPORTS
  91. __declspec(dllexport) const double gsl_prec_root6_eps[];
  92. #elif defined(GSL_IMPORTS)
  93. __declspec(dllimport) const double gsl_prec_root6_eps[];
  94. #else
  95. extern const double gsl_prec_root6_eps[];
  96. #endif
  97.  
  98.  
  99. __END_DECLS
  100.  
  101. #endif /* __GSL_PRECISION_H__ */
  102.